package main.java.study.step02;

/**
 * @author liuwenxiu
 * @Description: 可变参数Demo
 * @date 2022-7-13 20:11
 */
public class VariableParameterDemo {
    
    
    public static void print(String...strs){
        for (String str : strs) {
            System.out.print(str);
        }
        System.out.println();
    }

    public static void main(String[] args) {
        print("Sakura");
        print("Hello ","Sakura");
        print("Hello","!","Sakura");
    }
}
